home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Flip / ReadMe < prev    next >
Text File  |  1995-06-12  |  3KB  |  64 lines

  1. This is Rahul Dhesi's flip program compiled for the NeXT.  It's a simple
  2. little program that makes it easier to exchange DOS and Un*x text
  3. files.  The flip program should be put in your local binaries
  4. directory (/usr/local/bin or something).  The tar file includes the
  5. NeXT binary, the source, the man page in nroff & plain ASCII as well
  6. as instructions for how to compile it under different platforms (such
  7. as DOS).  I don't have Turbo C, or I would have compiled it.
  8.  
  9. I made a simple modification to it so that it runs as a filter when no
  10. file names are given.
  11.  
  12. If you have to exchange DOS and NeXT text files frequently, it's handy
  13. to set up Terminal services to do the CLI legwork for you.  The nice
  14. thing about terminal services is that they can be run from any 
  15. application that supports services (such as Edit and Workspace).
  16.  
  17. To set up a service which allows you to select text within the
  18. application and convert it from DOS (strip the carriage returns
  19. and the control-z), do the following:
  20.  
  21.   o Start Terminal, and select "Terminal Services" under the "Info" menu.  
  22.   o Press the "New" button, and enter something along the lines of
  23.     "DOS text to NeXT" for the name.
  24.   o In the "Command" field, enter "/usr/local/bin/flip -u"  (your path
  25.     may differ, of course)
  26.   o In the "Accept" panel, check "Plain text" only.
  27.   o In the "Use Selection" panel, push "As Input."
  28.   o In the "Execution" panel, select "Run service in background",
  29.     "Return Output", and "Fast C-shell."
  30.   o Press "OK"
  31.  
  32. To set up a service to convert NeXT text to DOS, just use a different
  33. name (like "NeXT text to DOS") and use "/usr/local/bin/flip -m" for
  34. the command.
  35.  
  36. This program also runs nicely from the Workspace since it can take
  37. multiple files.  To set up a service which allows you to select 
  38. text files and convert them from DOS to NeXT format, do the following:
  39.  
  40.   o Start Terminal, and select "Terminal Services" under the "Info" menu.  
  41.   o Press the "New" button, and enter something along the lines of
  42.     "DOS files to NeXT" for the name.
  43.   o In the "Command" field, enter "/usr/local/bin/flip -u"  (your path
  44.     may differ, of course)
  45.   o In the "Accept" panel, check "Files" only.
  46.   o In the "Use Selection" panel, push "On Cmd Line."
  47.   o In the "Execution" panel, select "Run service in background",
  48.     "Discard Output", and "Fast C-shell."
  49.   o Press "OK"
  50.  
  51. To set up a service to convert NeXT text files to DOS files, just use 
  52. a different name for the service (like "NeXT files to DOS") and use
  53. "/usr/local/bin/flip -m" for the command.
  54.  
  55. I take *no* responsibility for the above.  Flip seems to be pretty
  56. good about detecting binary files and refusing to brainwash them, 
  57. but I wouldn't count on it.  Make sure selected files are text files
  58. before converting them.
  59.  
  60. Read the man page for more details.
  61.  
  62. Craig Pratt
  63. pcnot4me@cs.montana.edu
  64.